package icu.d4peng.cloud.user.dto;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;

/**
 * @author d4peng
 * @version 1.0.0
 * @date 2022-01-01 10:28
 * @description AbstractDTO:基础抽象DTO
 */
public abstract class AbstractDTO implements Serializable {
    /**
     * 用户名
     */
    private String username;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 密码
     */
    private String password;
    /**
     * 验证码
     */
    private String code;

    public String getUsername() {
        return username;
    }

    public AbstractDTO setUsername(String username) {
        this.username = username;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public AbstractDTO setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public AbstractDTO setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getCode() {
        return code;
    }

    public AbstractDTO setCode(String code) {
        this.code = code;
        return this;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}